package org.example.common.fastdfs.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * FastDFS配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "fastdfs")
@Slf4j
public class FastDFSConfig {
    
    private List<String> trackerList;
    private String webServerUrl;
    private String group;
    private int connectTimeout = 10;
    private int networkTimeout = 30;
    private String charset = "UTF-8";
    private boolean antiStealToken = false;
    private String secretKey;
    private int soTimeout = 1500;
    private int httpPort = 8080;
    private int maxStorageConnection = 8;
    
    @Data
    public static class ThumbImage {
        private int width = 150;
        private int height = 150;
    }
}













































